//
//  MCReportFormsPageViewController.swift
//  StoreManage
//
//  Created by MC on 2018/8/10.
//  Copyright © 2018年 MC. All rights reserved.
//

import UIKit

class MCReportFormsPageViewController: MCPageViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        baseSetting()
        
        initUI()
        
        managerClosure()
        
        sendNetworking()
    }
    
    // MARK: - System Delegate
    
    // MARK: - Custom Delegate
    
    // MARK: - Closure
    func managerClosure() { }
    
    // MARK: - Action
    @objc func leftItemClicked() {
        self.navigationController?.popViewController(animated: true)
    }

    
    // MARK: - Network
    func sendNetworking() {
        
    }
    
    // MARK: - Method
    func baseSetting() {
        self.title = "销售报表"
        
        navigationItem.leftBarButtonItem = MCSetBarButtonItem_image(#imageLiteral(resourceName: "Reuse_back"), target: self, selector: #selector(leftItemClicked),isLeft: true)
    }
    
    func initUI() {
        let titles = ["日统计","月统计"]
        
        let vc1 = MCReportFormsViewController()
        vc1.isDay = true
        let vc2 = MCReportFormsViewController()
        vc2.isDay = false

        
        
        
        let vcs = [vc1,vc2]
        
        self.initWithTitleArray(titles, vcArray: vcs, blockNormalColor: UIColor.MCGray_middle, blockSelectedColor: UIColor.MCMain, currentPage: 0)
    }
    
    // MARK: - Setter & Getter
}
